package com.ry.synContainer;


import java.util.Hashtable;

public class HashTableExp {
    public static void main(String[] args) {
            Hashtable v = new Hashtable();

            new Thread(()->{
                for (int i = 0; i < 5000; i++) {
                    v.put(i,i);
                }
            }).start();

            new Thread(()->{
                for (int i = 5000; i < 10000; i++) {
                    v.put(i,i);
                }
            }).start();

            System.out.println(v.size());
    }
}
